package com.ssm.student.dao;

import com.ssm.student.eo.AnswerEoPage;
import com.ssm.student.model.Answer;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/*
 * 操作数据库方法的对接
 * */
@Mapper
public interface AnswerMapper {
    //添加答卷
    int insertAnswer(Answer answer);

    //通过试卷表中主键获取数量
    int getTestpaperid(int testpaperid);

    //通过主键更新答卷
    int updateAnswer(Answer answer);

    //通过主键删除答卷
    int delAnswer (Integer answerid);
    //根据条件获取相关信息
    List<AnswerEoPage> getWhereAll(AnswerEoPage answerEoPage);
}
